package com.ext.portlet.registration.service.impl;

import java.rmi.RemoteException;
import java.util.List;

import com.ext.portlet.registration.model.Parent;
import com.ext.portlet.registration.service.base.ParentLocalServiceBaseImpl;
import com.ext.portlet.registration.service.persistence.ParentUtil;
import com.liferay.portal.PortalException;
import com.liferay.portal.SystemException;


public class ParentLocalServiceImpl extends ParentLocalServiceBaseImpl {
	
	public List<Parent> getAllParents()
		throws PortalException, SystemException, RemoteException {
			return parentPersistence.findAll();
	}
	
	public List<Parent> getByStatus(Integer status) throws SystemException{
		return ParentUtil.findByStatus(status);
	}
	
	public Parent ParentValidation(String rollNo ,Long schoolId) throws SystemException{
		
		return parentPersistence.fetchByParentValidation(rollNo, schoolId);
	}
	
	public Parent getByEmailAddress(String emailAddress) throws SystemException{
		
		return parentPersistence.fetchByEmailAddress(emailAddress);
	}
	public Parent ParentDetail(String rollNo ,Long schoolId) throws SystemException{
		
		return ParentUtil.fetchByParentDetail(rollNo, schoolId);
	}
	
	public Parent getByLoginId(String loginId) throws SystemException{		
		
		return ParentUtil.fetchByLoginId(loginId);
	}
	
}
